From 5de9f849e8f24802a873fcb16785558aca28a3e3 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Sat, 10 Apr 1993 08:00:27 +0000 Subject: [PATCH] * dispnew.c (getenv): Extern declaration deleted; this is done in config.h. * dispnew.c (init_display): Compare the return value of getenv to zero before setting display_arg, instead of just using the pointer as a truth value. --- src/dispnew.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/dispnew.c b/src/dispnew.c index b1f15f2ee8e..137555efb9b 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -45,8 +45,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "xterm.h" #endif /* HAVE_X_WINDOWS */ -extern char *getenv (); - #define max(a, b) ((a) > (b) ? (a) : (b)) #define min(a, b) ((a) < (b) ? (a) : (b)) @@ -1999,9 +1997,9 @@ init_display () if (! display_arg) { #ifdef VMS - display_arg = getenv ("DECW$DISPLAY"); + display_arg = (getenv ("DECW$DISPLAY") != 0); #else - display_arg = getenv ("DISPLAY"); + display_arg = (getenv ("DISPLAY") != 0); #endif } -- 2.30.2